<?php
$this->headScript()->appendFile('/libs/jquery-ui-timepicker-addon.js');
$this->headScript()->appendFile('/libs/time.js');
$this->headScript()->appendFile('/libs/date.js');
$this->headScript()->appendFile('/libs/js/event/event-form.js');
$this->headLink()->appendStylesheet('/libs/css/jquery.timepicker.css');
?>
<script>
    $(function() {
	$('#date_from').datetimepicker({
	    showSecond: false,
	    dateFormat: 'dd.mm.yy',
	    timeFormat: 'HH:mm:ss',
	    stepHour: 1,
	    stepMinute: 15
	});
	$('#date_to').datetimepicker({
	    controlType: 'select',
	    dateFormat: 'dd.mm.yy',
	    timeFormat: 'HH:mm:ss',
	    stepHour: 1,
	    stepMinute: 15
	});
	//$( "#date_to" ).datepicker();
    });
</script>
<?php
//echo $errors;
$this->form->setAction($this->url());
echo $this->form;
?>